const isDev = process.env.NODE_ENV === 'development'

module.exports = {
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'scss',
      patterns: []
    },
    'cube-ui': {
      postCompile: false,
      theme: false
    }
  },
  css: {
    loaderOptions: {
      stylus: {
        'resolve url': true,
        'import': []
      }
    }
  },
  lintOnSave: false,
  devServer: { 
    disableHostCheck: true, 
  },
  publicPath: isDev ? '/' : './',
  productionSourceMap: isDev,
}
